<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<!--
    Copyright 2010 Aravindan Ramkumar

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License. You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and limitations under the License.
-->        
<html>
<head>
    <title>Site Search Options</title>
    <script type="text/javascript">
        function store(element) {
            localStorage[element.name] = element.value;
        }

        function load_options() {
            var provider = localStorage['provider'] || "bing";
            var tab_select = localStorage['tab_select'] || "same_tab";

            document.getElementById(provider).checked = true;
            document.getElementById(tab_select).checked = true;
        }
    </script>     
</head>
<body onload="load_options();">
<table>
    <tbody>
        <tr>
            <td>
                <img src="images/icon48.png" alt="Site Search">
            </td>
            <td>&nbsp;</td>
            <td>
                <h2>Site Search Options</h2>
            </td>
        </tr>
    </tbody>
</table>
<br>
<br>
<table>
    <tfoot>
        <tr>
            <td colspan="3"><h3>Options are saved automatically.</h3></td>
        </tr>
    </tfoot>
    <tbody>
    <tr>
        <td><h3>Search Provider:</h3></td>
        <td>&nbsp;</td>
        <td>
            <input type="radio" name="provider" value="bing" id="bing" onclick="store(this);"/>&nbsp; Bing<br>
            <input type="radio" name="provider" value="google" id="google" onclick="store(this);"/>&nbsp; Google<br>
            <input type="radio" name="provider" value="yahoo" id="yahoo" onclick="store(this);"/>&nbsp; Yahoo<br>            
        </td>
    </tr>
    <tr>
        <td><h3>Open results in :</h3></td>
        <td>&nbsp;</td>
        <td>
            <input type="radio" name="tab_select" value="same_tab" id="same_tab" onclick="store(this);"/>&nbsp; Same Tab<br>
            <input type="radio" name="tab_select" value="new_tab" id="new_tab" onclick="store(this);"/>&nbsp; New Tab
        </td>
    </tr>
    </tbody>
</table>
</body>
</html>